# txt=open('./data/python.txt', 'r',encoding='utf-8')

# txt_read=txt.read()
# print(txt_read)

with open('./data/python.txt', 'r',encoding='utf-8') as txt:
    # txt_read=txt.read()
    lines=txt.readlines()
    print(lines)
    print(type(lines))
    txt.close()

with open('./data/python.txt', 'w',encoding='utf-8') as txt:
    for i in range (100):
        txt.write(str(i)+'\n')
    txt.close()

with open('./data/python.txt','r',encoding='utf-8') as txt:
    print(txt.read())
    txt.close()



